<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<HTML>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<!-- 引入Jquery -->
<script type="text/javascript"
	src="${ pageContext.request.contextPath }/static/js/jquery-2.1.1.min.js"></script>
<!-- 引入样式 -->
<link href="${pageContext.request.contextPath}/css/Style1.css"
	rel="stylesheet" type="text/css" />
<link
	href="${ pageContext.request.contextPath }/static/bootstrap-3.3.7-dist/css/bootstrap.min.css"
	rel="stylesheet">

<body>
	<div style="float: left;">
		<div style="float: left; margin-left: 100px;">
			<form
				action="${pageContext.request.contextPath}/admin/admin_selectByUsername.action">
				<table>
					<tr>
					<td width="190"></td>
						<td style="padding-left: 600px;"><input type="text"
							style="height: 26px;" name="username" placeholder="用户名" id="uid" /></td>
						<td width="10"></td>
						<!-- <td><input type="submit" value=""
							class="btn btn-primary btn-sm glyphicon glyphicon-search" /></td> -->
						<td><button type="submit"
								class="btn btn-primary btn-sm glyphicon glyphicon-search"></button></td>
					</tr>
				</table>
			</form>
		</div>
	</div>


	<div class="d" style="width: 96%; margin-left: 26px;">
		<!-- 显示结果 -->
		<form style="margin-top: 20px;">
			<table width="100%" align="center"
				class="table table-hover table-bordered table-striped" id="table"
				style="border: 1px solid #D0D0D0">
				<thead>
					<tr align="center" bgcolor="#93b6bd" height="33px;">
						<td align="center" width="7%">用户id</td>
						<td align="center" width="7%">用户名</td>
						<td align="center" width="7%">密码</td>
						<td width="7%" align="center">email</td>
						<td width="7%" align="center">phone</td>
						<td width="7%" align="center">收货地址</td>
						<td width="7%" align="center">激活状态</td>
					</tr>
				</thead>
				<tbody></tbody>
				<c:forEach items="${userList}" var="u">
					<tr onmouseover="this.style.backgroundColor = 'white'"
						onmouseout="this.style.backgroundColor = '#F5FAFE';" height="40">
						<td align="center">${u.uid}</td>
						<td align="center">${u.username}</td>
						<td align="center">${u.password}</td>
						<td align="center">${u.email}</td>
						<td align="center">${u.phone}</td>
						<td align="center">${u.addr}</td>
						<td align="center">${u.state}</td>
					</tr>
				</c:forEach>
			</table>
		</form>
	</div>
</body>
</HTML>

